
bit = require("bit")
require "Common/define"
require( "Common/Class")
require( "Common/functions")
require( "Common/ZZMathBit")
require("Common/FairyGUI")
require("Common/UTimer")
require("Common/TablePool")
require("Common/DataTable")
require("Common/systemevent")
require("View/UIConfig")
require("View/UIBase/UIComponentInterface")
require("View/UIBase/UIComponentBase")
require("View/UIBase/UIBase")

require("View/Common/HeroBigIcon")
require("View/Common/HeroIcon")
require("Logic/IconUtil")


require("Battle/BattleInclude")


--管理器--
Game = {};
--初始化完成，发送链接服务器信息--
function Game.OnInitOK()
    resMgr:AddPackage("UICommon")
    resMgr:AddPackage("SpecialFonts")
    resMgr:AddPackage("AtlasSkill")
    resMgr:AddPackage("AtlasHero")
    showUI(PanelNames.UILoading,function()
        showUI(PanelNames.UIMainPage)
    end)
end
function Game.OnSceneLoaded(rootScene)
    if Battle.SceneMgr then
        Battle.SceneMgr.OnSceneLoaded(rootScene)
    end
end
function Game.OnExploreSceneLoaded(exploreScene)
    if Battle.SceneMgr then
        Battle.SceneMgr.OnExploreSceneLoaded(exploreScene)
    end
end
function Game.getUIParent(uiName)
       return "MainParent"
end
--销毁--
function Game.OnDestroy()
	--logWarn('OnDestroy--->>>');
end
